package date1129.lookup;

import java.sql.SQLException;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

/**
 * @author Yue
 * @date 2017年11月28日 下午5:58:45 
 */
public class SpringTest {

	private static AbstractApplicationContext applicationContext;
	public static void main(String[] args) throws SQLException {
		applicationContext = new ClassPathXmlApplicationContext(Resource.getAssertPath(SpringTest.class,"beans.xml"));
		People people = applicationContext.getBean("people",People.class);
		//由于每次调用都生成新的bean，故bean的哈希码是不一样的。
		people.play();
		people.play();
		
	}

}
